import Vue from 'vue'
import Vant from 'vant'
import infiniteScroll from 'vue-infinite-scroll'

import App from './App.vue'
import router from './router'
import store from './store'
import './plugin/filter'
import '@webang/common-css/lib/ui.css'
import 'vant/lib/index.css'

import 'vant/lib/icon/local.css'
import './assets/styles/base.less'
import './assets/styles/cover.less'

Vue.use(Vant)
Vue.use(infiniteScroll)

// const getVConsole = () => import('vconsole')
// if (process.env.NODE_ENV === 'development') {
//   getVConsole().then(VConsole => {
//     /* eslint-disable no-new */
//     new VConsole()
//   })
// }

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
}).$mount('#app')
